package cn.wolfcode.luowowo.search.Repository;

import cn.wolfcode.luowowo.search.domain.StrategyTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StrategyTemplateRepository extends ElasticsearchRepository<StrategyTemplate, Long> {

    /**
     * 根据id查找主题
     * @param id
     * @return
     */
    List<StrategyTemplate> findByThemeId(Long id);

    /**
     * 根据目的地查找关联攻略
     * @param name
     * @return
     */
    List<StrategyTemplate> findByDestName(String name);
}
